<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var loginUserName = '${loginUser.name}';
        var loginUserId = '${loginUser.id}'
    </script>
    <SCRIPT src="${ctx}/resources/js/accidentEvent/accidentReport/add.js" type="text/javascript"></SCRIPT>
</head>
<body>
<div class="menu-right" style="">
    <a class="button icon-save" id="btn_save">
        保存
    </a>
    <a class="button icon-refer" id="btn_submit">
        提交
    </a>
    <%--<a class="button icon-export">
        导入
    </a>--%>
</div>
<form id="infoForm" method="post">
    <div class="information">
        <div class="information-title">
            <p>事故基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="">
            <div style="clear: both">
                <div class="form_one" style="">
                    <label class="lable-style">事故名称:</label>
                    <input type="hidden" id="accidentId" name="accidentId">
                    <input type="text" class="easyui-textbox" style="width: 240px;" required="true" id="accident">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">事故发生单位:</label>
                    <input id="happenDept" class="easyui-textbox" style="width: 240px;"
                           readonly>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">事故发生时间:</label>
                    <input id="happenTime" class="easyui-textbox" style="width: 240px;"
                           readonly>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="">
                    <label class="lable-style">事故级别:</label>
                    <input id="accidentLevelId" type="text" class="easyui-textbox" style="width:240px;"
                           readonly>
                    <span>*</span>
                </div>
                <div class="form_one" style="">
                    <label class="lable-style">事故类别:</label>
                    <input id="accidentTypeId" type="text" class="easyui-textbox" style="width:240px;"
                           readonly>
                    <span>*</span>
                </div>
                <div class="form_one" style="">
                    <label class="lable-style">项目名称:</label>
                    <input id="project" type="text" class="easyui-textbox" style="width:240px;"
                           readonly>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否选择工厂模式:</label>
                    <select class="easyui-combobox" style="width: 240px;" id="isFactoryModel"
                            editable="false" panelHeight="50" readonly>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                    <span>*</span>
                </div>
                <div class="form_one" id="siteIdDiv">
                    <label class="lable-style">事故发生地点:</label>
                    <input id="siteId" type="hidden">
                    <input id="site" editable="false" class="easyui-textbox"
                           style="width: 240px;" readonly>
                    <span>*</span>
                </div>
                <div class="form_one" id="siteNameDiv" style="display: none;">
                    <label class="lable-style">事故发生地点:</label>
                    <input id="siteName" class="easyui-textbox" style="width: 240px" readonly>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">具体部位:</label>
                    <input id="specificSite" class="easyui-textbox" style="width: 240px;" readonly>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否承包商事故:</label>
                    <select class="easyui-combobox" style="width: 240px;" id="isContractor"
                            panelHeight="50" editable="false" readonly>
                        <option value="1">是</option>
                        <option value="0" selected>否</option>
                    </select>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">是否境外事故:</label>
                    <select class="easyui-combobox" style="width: 240px;" id="isOverseas"
                            panelHeight="50" editable="false" readonly>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                    <span>*</span>
                </div>
                <div class="form_one" id="contractorDiv" style="display: none;">
                    <label class="lable-style">承包商名称:</label>
                    <input id="contractor" editable="false" class="easyui-textbox"
                           style="width: 240px;" readonly>
                    <span>*</span>
                </div>
            </div>

            <div style="clear: both;height: 105px;">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故经过:</label>
                    <input id="course" class="easyui-textbox" data-options="multiline:true"
                           style="height: 100px;width: 598px;"
                           readonly/>
                    <span>*</span>
                </div>
            </div>
            <%--<div style="clear: both;height: 105px;">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故初步原因:</label>
                    <input class="easyui-textbox" data-options="multiline:true" required style="height: 100px;width: 598px;" name="firstReason"/>
                    <span>*</span>
                </div>
            </div>--%>
            <div style="clear: both;height: 105px;">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故处理情况:</label>
                    <input id="handleCondition" class="easyui-textbox" data-options="multiline:true"
                           style="height: 100px;width: 598px;"
                           readonly/>
                    <span>*</span>
                </div>
            </div>
            <%-- <div style="clear: both;">
                 <div class="form_one">
                     <label class="lable-style">报告单位:</label>
                     <input class="easyui-textbox" id="reportDeptId" style="width: 240px;" required="true" name="reportDeptId" editable="false"/>
                     <span>*</span>
                 </div>
                 <div class="form_one">
                     <label class="lable-style">报告人:</label>
                     <input type="hidden" id="reportUserId" name="reportUserId">
                     <input id="reportUser" class="easyui-textbox" style="width: 240px;" required="true"  editable="false"/>
                     <span>*</span>
                 </div>
                 <div class="form_one">
                     <label class="lable-style">报告时间:</label>
                     <input class="easyui-datebox" style="width: 240px;" required="true" name="reportTime" editable="false"/>
                     <span>*</span>
                 </div>
             </div>--%>
            <%-- <div style="clear: both;height:57px;">
                 <div class="form_one">
                     <label class="lable-style">事故主管部门:</label>
                     <input class="easyui-textbox" id="competentDeptId" style="width: 240px;" required="true" name="competentDeptId"/>
                     <span>*</span>
                 </div>
                 <div class="form_one">
                     <label class="lable-style">安全监督管理部门负责人:</label>
                     <input type="hidden" id="safetyDeptDutyUserId" name="safetyDeptDutyUserId">
                     <input id="safetyDeptDutyUser" class="easyui-textbox" style="width: 240px;" required="true" />
                     <span>*</span>
                 </div>
                 <div class="form_one">
                     <label class="lable-style">公司分管领导:</label>
                     <input type="hidden" id="chargeLeaderId" name="chargeLeaderId">
                     <input id="chargeLeader" class="easyui-textbox" style="width: 240px;" required="true"/>
                     <span>*</span>
                 </div>
             </div>--%>
        </div>
    </div>

    <div class="information">
        <div class="information-title">
            <p>人员伤亡信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure" style="height:300px; ">
            <table id="casualtiesList">
            </table>
            <div id="casualtiesTb">
                <a id="btn_casualties_add" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-plus fa-lg" style="margin:5px;" onclick="appendTableRow1()">添加</a>
                <a id="btn_casualties_delete" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-trash fa-lg" style="margin:5px;" onclick="deleteTableRow1()">删除</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow1()">保存</a>
                <%--<a id="btn_precaution_edit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-edit fa-lg" style="margin:5px;" onclick="editTableRow()">编辑</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow()">保存</a>
                <a id="btn_precaution_reject" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-reply fa-lg" style="margin:5px;" onclick="rejectTableRow()">撤销</a>--%>
            </div>
        </div>
        <div style="clear: both;height:57px;">
            <div class="form_one">
                <label class="lable-style">死亡人数:</label>
                <input id="dieNum" class="easyui-textbox" name="dieNum" value="0" style="width: 240px;" readonly/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">重伤人数:</label>
                <input id="seriousInjuryNum" class="easyui-textbox" name="seriousInjuryNum" value="0"
                       style="width: 240px;" readonly/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">轻伤人数:</label>
                <input id="slightInjuryNum" class="easyui-textbox" name="slightInjuryNum" value="0"
                       style="width: 240px;" readonly/>
                <span>*</span>
            </div>
        </div>

        <div style="clear: both;height:57px;">
            <div class="form_one">
                <label class="lable-style">损失工作日人数:</label>
                <input class="easyui-numberspinner" validType="int" value="0" style="width: 240px;" required="true"
                       name="lossWorkDayNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">工作受限人数:</label>
                <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                       name="workLimitedNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">医疗处理人数:</label>
                <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                       name="medicalCareNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
        </div>
        <div style="clear: both;height:57px;">
            <div class="form_one">
                <label class="lable-style">简单医疗处理人数:</label>
                <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                       name="simpleMedicalCareNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">失去知觉人数:</label>
                <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                       name="lossConsciousnessNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
            <div class="form_one">
                <label class="lable-style">其他伤害人数:</label>
                <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                       name="otherDamageNum"
                       data-options="min:0"/>
                <span>*</span>
            </div>
        </div>
    </div>

    <div class="information">
        <div class="information-title">
            <p>事故损失信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="">
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">直接经济损失（万元）:</label>
                    <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                           name="directEconomicLoss"
                           data-options="min:0,precision:2"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">间接经济损失（万元）:</label>
                    <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                           name="indirectEconomicLoss"
                           data-options="min:0,precision:2"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">火灾或爆炸级别:</label>
                    <input id="fireOrExplosionLevelId" class="easyui-combobox" style="width: 240px;"
                           name="fireOrExplosionLevelId"
                           editable="false"/>
                </div>
            </div>
            <div style="clear: both;height: 105px;">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故损失描述:</label>
                    <input class="easyui-textbox" data-options="multiline:true" required
                           style="height: 100px;width: 598px;" name="lossDescription"/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">油气或化学品泄漏（吨）:</label>
                    <input class="easyui-numberspinner" value="0" style="width: 240px;" name="leakQuantity"
                           data-options="min:0"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">油气或化学品回收（吨）:</label>
                    <input class="easyui-numberspinner" value="0" style="width: 240px;" required="true"
                           name="recycleQuantity"
                           data-options="min:0"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">泄漏级别:</label>
                    <input id="leakLevelId" class="easyui-combobox" style="width: 240px;" name="leakLevelId"
                           editable="false"/>
                </div>
            </div>
        </div>
    </div>

    <div class="information">
        <div class="information-title">
            <p>事故原因分析</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="">
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">与工作有关:</label>
                    <select class="easyui-combobox" value="0" style="width: 240px;" required="true" name="isWorkRelated"
                            panelHeight="50px" editable="false">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">作业环节:</label>
                    <input id="jobStepId" class="easyui-combobox" style="width: 240px;" required="true"
                           name="workLinkId"
                           editable="false"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">作业活动:</label>
                    <input id="jobActivityId" class="easyui-combobox" style="width: 240px;" name="workActivityId"
                           validType="validSelect"
                           required editable="false"/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height: 105px;">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故直接原因:</label>
                    <input class="easyui-textbox" data-options="multiline:true" required
                           style="height: 100px;width: 598px;" name="directReason"/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">直接原因类型:</label>
                    <input id="directReasonTypeId" class="easyui-combobox" style="width: 240px;"
                           name="directReasonTypeId" validType="validSelect" required
                           editable="false"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">不安全行为:</label>
                    <input id="unsafeActId" class="easyui-combobox" style="width: 240px;" required="true"
                           name="unsafeActId" required validType="validSelect"
                           editable="false" disabled/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">不安全状态:</label>
                    <input id="unsafeStateId" class="easyui-combobox" style="width: 240px;" required="true"
                           name="unsafeStateId" required validType="validSelect"
                           editable="false" disabled/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height: 105px">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故间接原因:</label>
                    <input id="indirectReason" class="easyui-textbox" data-options="multiline:true" required
                           style="height: 100px;width: 598px;" name="indirectReason"/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both;height:57px;">
                <div class="form_one">
                    <label class="lable-style">间接原因类型:</label>
                    <input id="indirectReasonTypeId" class="easyui-combobox" style="width: 240px;"
                           name="indirectReasonTypeId" required validType="validSelect"
                           editable="false"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">事故性质:</label>
                    <input id="accidentNatureId" class="easyui-combobox" style="width: 240px;" required="true"
                           name="accidentNatureId" required validType="validSelect"
                           editable="false"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">事故报告形成日期:</label>
                    <input class="easyui-datebox" style="width: 240px;" required="true" name="reportFormationDate"
                           required
                           editable="false"/>
                    <span>*</span>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>事故责任分析</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="">
            <div style="clear: both;height: 105px">
                <div class="form_one fotm-textarea" style="margin-bottom: 5px;">
                    <label class="lable-style">事故责任:</label>
                    <input class="easyui-textbox" data-options="multiline:true" required
                           style="height: 100px;width: 598px;" name="accidentLiability"/>
                    <span>*</span>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>负责人处理意见</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure" style="height:300px; ">
            <table id="handlingSuggestionList">
            </table>
            <div id="manageSuggestionTb">
                <a id="btn_manageSuggestion_add" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-plus fa-lg" style="margin:5px;" onclick="appendTableRow2()">添加</a>
                <a id="btn_manageSuggestion_delete" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-trash fa-lg" style="margin:5px;" onclick="deleteTableRow2()">删除</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow2()">保存</a>
                <%--<a id="btn_precaution_edit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-edit fa-lg" style="margin:5px;" onclick="editTableRow()">编辑</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow('manageSuggestionList')">保存</a>
                <a id="btn_precaution_reject" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-reply fa-lg" style="margin:5px;" onclick="rejectTableRow('manageSuggestionList')">撤销</a>--%>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>防范措施</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="enclosure" style="height:300px; ">
            <table id="precautionList">
            </table>
            <div id="precautionTb">
                <a id="btn_precaution_add" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-plus fa-lg" style="margin:5px;" onclick="appendTableRow3()">添加</a>
                <a id="btn_precaution_delete" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-trash fa-lg" style="margin:5px;" onclick="deleteTableRow3()">删除</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton"
                   iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow3()">保存</a>
                <%--<a id="btn_precaution_edit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-edit fa-lg" style="margin:5px;" onclick="editTableRow()">编辑</a>
                <a id="btn_precaution_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" style="margin:5px;" onclick="saveTableRow('manageSuggestionList')">保存</a>
                <a id="btn_precaution_reject" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-reply fa-lg" style="margin:5px;" onclick="rejectTableRow('manageSuggestionList')">撤销</a>--%>
            </div>
        </div>
    </div>
    <div class="information" style="margin-bottom: 10px;">
        <div class="information-title">
            <p>附件列表</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle" style="">
            <accessory:accessorySimple permission="write" packageKey="lbfj" uploadUserId="${loginUser.id}"
                                       accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
        </div>
    </div>
</form>
</body>
</html>
